package com.zjc.yohoshop.di.modules;

import com.zjc.yohoshop.mvp.contract.CarListFragmentContract;
import com.zjc.yohoshop.mvp.model.CarListFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class CarListFragmentModules {

    private CarListFragmentContract.CarListFragmentIView iView;

    public CarListFragmentModules(CarListFragmentContract.CarListFragmentIView iView) {
        this.iView = iView;
    }

    @Provides
    public CarListFragmentContract.CarListFragmentIView providerIView(){
        return iView;
    }

    @Provides
    public CarListFragmentContract.CarListFragmentIModel providerIMoodel(){
        return new CarListFragmentModel();
    }

}
